<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字打字机效果</title>
    <link rel="stylesheet" href="./css/文字打印机.css">
</head>
<body>
    <div class="title" id="title">
        <span class="animat">这</span>
        <span>是</span>
    </div>
    <script>
        var title = "这是一个标题";
        var text = "这是一些内容";
        function anmet(ID,val){
            $('#'+ID).append('<span></span>');
            $('#'+ID).children('span:last-child').addClass('animat');
        }
    </script>
</body>
</html>